Skip to main content link. Accesskey S
  • Help
  • HCL Logo
  • HCL Notes and Domino Application Development wiki
  • THIS WIKI IS READ-ONLY. Individual names altered for privacy purposes.
  • HCL Forums and Blogs
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • API Documentation
Search
API Documentation > Using an XPages Library in Designer
  • Share Show Menu▼
  • Subscribe Show Menu▼

Recent articles by this author

Community articleUsing an XPages Library in Designer
Added by ~Elizabeth Cisboosiburakol | Edited by IBM contributor~Sean Reresongon on June 9, 2010 | Version 11
expanded Abstract
collapsed Abstract
An XPages library is a packaged plugin containing extended controls. This article shows you step-by-step how to install XPages libraries into Domino Designer and create applications using the new controls.
Tags: XPages, 8.5.2
Beta

Note: This is draft documentation for 8.5.2, and is subject to change in the final release.

DRAFT



An XPages library is a packaged plugin containing extended controls to be added to the Designer palette, the runtime functionality for those controls and any other extensions to the XPages Runtime. You can install such libraries into Domino Designer, and create applications using the new controls. This is part of the XPages Extensibility documents.


Install the update site to Designer


Enable the Install menu item.
The first time you use any library, you will need to enable the Install menu item in Designer. If your administrator has installed the library for you, you can skip to the next section on Creating Application using the Library.

File, Preferences, Domino Designer, General panel, check the check box "Enable Eclipse plugin install".
(You do not need to restart Designer)

If that check box is not present it is because the Domino administrator has configured a policy setting for the Notes install, to prevent installing plugins to the Notes Client.


Install the update site using the Install menu item.
In Domino Designer, in the File menu, Application, Install. Search for new features to install, Next.
If you have built the update site yourself, choose
Add Folder Location, C:\Program Files\Lotus\Notes\Data\workspace\libraryUpdateSite OK
If the update site has been shared on a web server, choose
Add Remote Location, enter the URL, OK.

Finish. Toggle open the update site, select your feature, Next. Accept the license agreement, Next. Finish.

You'll get a warning about installing an unsigned feature, choose "Install this plug-in", OK.


It asks if you want to restart, choose Restart Now


You can verify that the feature is installed by checking in File, Application, Application Management. It will be in the install location
C:\Program Files\Lotus\Notes\Data\workspace\applications\eclipse
It can also be uninstalled from that dialog.

When installing later versions of the same plugin, this option in the Install dialog doesn't seem to work: "Search for updates of the currently installed features", so just use the "Search for new features to install" option again.


Create an application using the library control

Create an application, and create an XPage. Type in some text.
In the Palette, select Other..., drag onto the page, under Extended Controls, select on the Example Control, click OK.


You will be prompted with a dialog asking if you want to make this application depend on the library. Click Continue.

That will update the option in the Application Properties, Advanced tab, XPage Libraries, to put a check mark beside the library ID.
When that option is enabled, the application will give an error if you attempt to run it in an environment where the library is not present.
(In this screenshot, 2 libraries are installed in Designer, but the current application is only using the first library.)


If the library is not present on the Domino server or Notes Client when you attempt to run the application, you will get an error like:

Unexpected runtime error

The runtime has encountered an unexpected error.

Exception

Cannot find the library com.example.xsp.library, required by the application /myApp.nsf.

Preview in Notes


The Notes Client preview will work because you have manually installed the library into this Designer install. You can use this preview for testing, but your end users will use a different mechanism for installing the application into the Notes Client. The library will be installed for them through the Widget Catalog which is described in this article Deploying XPage Libraries

Select the XPage in Designer, in the Design menu choose "Preview in Notes".




expanded Attachments (0)
collapsed Attachments (0)
expanded Versions (14)
collapsed Versions (14)
Version Comparison     
VersionDateChanged by              Summary of changes
14Sep 21, 2010, 1:15:31 PM~Sanjay Eklutherettu  IBM contributor
13Aug 20, 2010, 10:20:28 AM~Phil Fezhipivitchader  IBM contributor
12Aug 6, 2010, 8:17:28 AM~Phil Fezhipivitchader  IBM contributor
This version (11)Jun 9, 2010, 11:12:55 AM~Sean Reresongon  IBM contributor
10May 21, 2010, 1:20:35 PM~Sean Reresongon  IBM contributor
9May 21, 2010, 9:26:52 AM~Lex Feztookonyikle  IBM contributor
8May 21, 2010, 9:14:16 AM~Lex Feztookonyikle  IBM contributor
7May 20, 2010, 5:47:50 PM~Olga Minfreepuloni  IBM contributor
6May 20, 2010, 5:42:52 PM~Olga Minfreepuloni  IBM contributor
5May 20, 2010, 5:41:23 PM~Olga Minfreepuloni  IBM contributor
4May 20, 2010, 3:31:19 PM~Sean Reresongon  IBM contributor
3May 19, 2010, 5:03:22 PM~Lex Feztookonyikle  IBM contributor
2May 19, 2010, 5:00:06 PM~Lex Feztookonyikle  IBM contributor
1May 19, 2010, 1:14:25 PM~Elizabeth Cisboosiburakol  
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedAbout
  • HCL Software
  • HCL Digital Solutions community
  • HCL Software support
  • BlogsDigital Solutions blog
  • Community LinkHCL Software forums and blogs
  • About HCL
  • Privacy
  • Accessibility